//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.jaiai.work.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class RestResult<T> {
    private int code;
    private String error;
    private T data;
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private RestResult() {
    }

    public static <T> RestResult<T> newInstance() {
        return new RestResult();
    }

    public String toString() {
        return "RestResult{ code='" + this.code + '\'' + ", error='" + this.error + '\''  + ", data=" + this.data + '}';
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    @JsonInclude(Include.NON_NULL)
    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }



    @JsonInclude(Include.NON_NULL)
    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
